package com.hyk.controller;

import com.hyk.domain.SysUser;
import com.hyk.dto.R;
import com.hyk.service.SysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@Api(tags = "测试接口")
public class TestController {

    @Resource
    private SysUserService sysUserService;

    @GetMapping("/test")
    @ApiOperation("查询用户")
    public R<List<SysUser>> sysUser(){
        List<SysUser> list = sysUserService.list();
        return R.ok(list);
    }

}
